package com.coderush.admin.sys.service;

import com.coderush.admin.core.common.PageResult;
import com.coderush.admin.core.utils.UserContextModel;
import com.coderush.admin.sys.model.dto.EmpSearchDto;
import com.coderush.admin.sys.model.dto.EmployeeAddDto;
import com.coderush.admin.sys.model.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coderush.admin.sys.model.vo.EmployeePageVo;

/**
* @author Administrator
* @description 针对表【sys_employee(员工信息表)】的数据库操作Service
* @createDate 2025-08-18 10:21:09
*/
public interface EmployeeService extends IService<Employee> {


    /**
     * 分页查询员工信息
     */
    PageResult<EmployeePageVo> findByPage(EmpSearchDto empSearchDto);

    /**
     * 通过Token获取员工信息
     */
    UserContextModel getEmpInfo();

    /**
     * 添加员工信息
     */
    Boolean addEmpInfo(EmployeeAddDto addDto);
}
